#ifndef APPLICATION_H
#define APPLICATION_H

#include <QApplication>

class MainWindow;
class Document;
class View;

class Application : public QApplication
{
	Q_OBJECT

public:
	Application(int& argc, char** argv);
	~Application();

	static Application& instance();

	bool initInstance();
	void exitInstance();

	QPointer<View> activeView() const;
	QPointer<Document> activeDocument() const;
private:
	QPointer<MainWindow> m_mainWindow;
};

#endif // APPLICATION_H
